import time
import threading


def show():
    while True:
        print(number)
        time.sleep(0.3)


def change():
    global number
    for i in range(3):
        number += 1
        time.sleep(1)


if __name__ == '__main__':
    number = 101
    t1 = threading.Thread(target=show)
    t2 = threading.Thread(target=change)
    t1.start()
    t2.start()
    t1.join()
    t2.join()
